<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
        <title>test template</title>
        <link rel="stylesheet" type="text/css" href="static/css/webappkit.web.css" media="screen" />
    </head>
    <body>
        <div id="header">
            <h1><span>Bonjour</span></h1>
            <p>Ceci est un template de test.</p>
            <h2>Test des tags</h2>
            <h3>comment</h3>
            {% comment %}<p>Ceci devrait être caché<p>{% endcomment %}
            <h3>if / for</h3>
            {% if array %}<ul>{% for n in array %}
                <li>{{ forloop.counter }} : {{ n }}</li>{% endfor %}
            </ul>{% endif %}
            <h3>ifequal</h3>
            {% ifequal var "value" %}<p>var == "value"</p>{% endifequal %}
            <h3>switch</h3>
            {% switch array.0 %}
            {% case "a" %}<p>A</p>{% endcase %}
            {% case 1 %}<p>One</p>{% endcase %}
            {% default %}<p>? ({{ array.0 }})</p>{% enddefault %}
            {% endswitch %}
            <h2>testing filters</h2>
            {% filter slugify %}
            <p>let's filter this <strong>w€ird</strong> text !</p>
            {% endfilter %}
            {% filter striptags %}
            <p>let's filter this <strong>w€ird</strong> text !</p>
            {% endfilter %}
            <h2>Requete</h2>
            <pre><code>{{ request|vardump }}</code></pre>
        </div>
    </body>
</html>
